package router

import (
	"github.com/gin-gonic/gin"
	"novel-ease/handlers"
)

func Router() *gin.Engine {
	r := gin.Default()
	r.POST("login", handlers.Login)
	r.GET("/list", handlers.List)
	r.GET("/detail", handlers.Detail)
	return r
}
